<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<base th:href="@{/}">
	<meta charset="utf-8">
	<title></title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="static/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="static/ztree/zTreeStyle/zTreeStyle.css" type="text/css">
	<link rel="stylesheet" href="static/layui/module/eleTree/eleTree.css" media="all" />
	<script type="text/javascript" src="static/layui/layui.js"></script>
	<script type="text/javascript" src="static/plugin/jquery/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="static/ztree/js/jquery.ztree.all.min.js"></script>
	<script type="text/javascript" src="static/ztree/js/jquery.ztree.core.js"></script>
	<script type="text/javascript" src="static/ztree/js/jquery.ztree.excheck.js"></script>
	<script type="text/javascript" src="static/js/permission/index.js"></script>
	<style type="text/css">
		.layui-table,.layui-table-view{
			margin: 0;
		}
		.layui-fluid{
			padding: 0 8px;
		}
		.layui-form-item {
		    margin: 0;
		}
		.layui-form-label {
		    white-space: nowrap;
		}
	</style>
</head>
<body class="layui-fluid">
	<div class="layui-row" style="margin-top: 5px;">
	    <div class="layui-col-md12">
        	<div class="layui-collapse" lay-filter="search">
				<div class="layui-colla-item">
					<h2 class="layui-colla-title">搜索条件</h2>
				    <div class="layui-colla-content layui-show">
				    	<form class="layui-form">
				       		<div class="layui-form-item">
								<div class="layui-inline">
					   				<label class="layui-form-label">角色</label>
					   				<div class="layui-input-inline">
					     				<input type="text" id="roleCode" placeholder="请输入" class="layui-input">
					   				</div>
					   				<a class="layui-btn layui-btn-sm layui-btn-normal" id="search"><i class="layui-icon">&#xe615;</i>查询</a>
					   			</div>
							</div>
			   			</form>
				    </div>
				</div>
           	</div>
	    </div>
	</div>
	<div style="padding: 10px; background-color: #F2F2F2; height: 97%;">
		<div class="layui-row layui-col-space15" style="height: 100%;">
		    <div class="layui-col-md9">
		      <div class="layui-card">
		      	<div class="layui-card-header">角色列表</div>
		        <div class="layui-card-body" style="padding-top: 0px;">
					<table id="roleTable" class="layui-table" lay-filter="roleTable"></table>
		        </div>
		      </div>
		    </div>
		    <div class="layui-col-md3" style="height: 100%;">
		      <div class="layui-card"  style="height: 100%;">
		      	<div class="layui-card-header">权限列表</div>
		        <div class="layui-card-body" style="padding-top: 0px;">
		        	<div class="eleTree permissionTree" lay-filter="permissionTree"></div>
		        </div>
				<button shiro:hasPermission="btn:permission_addPermission" class="layui-btn layui-btn-sm sumbitPermission" style="float: right;margin-top: 5px;"><i class="layui-icon">&#xe6af;</i>确认赋权</button>
		      </div>
		    </div>
		</div>
	</div>
	<script type="text/html" id="tableToolbar">
		<div class="layui-inline" shiro:hasPermission="btn:permission_addRole">
			<button class="layui-btn layui-btn-sm" lay-event="add"><i class="layui-icon">&#xe654;</i>添加角色</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:permission_editRole">
			<button class="layui-btn layui-btn-sm" lay-event="edit"><i class="layui-icon">&#xe642;</i>修改角色</button>
		</div>
		<div class="layui-inline" shiro:hasPermission="btn:permission_deleteRole">
			<button class="layui-btn layui-btn-sm" lay-event="del"><i class="layui-icon">&#xe640;</i>删除角色</button>
		</div>
	</script>
</body>
</html>